import http from '@/utils/http';

const common = {
  //获取XY表格
  getXYTable(params: Object) {
    let url = '/Common/GetXYTable';
    return http.upload(url, params);
  },
  //获取XYTable视图
  getXYTableView(params: Object) {
    let url = '/Common/GetXYTableView';
    return http.post(url, params);
  },
  //导出XYTableExcel
  downLoadXYTableExcel(params: Object) {
    let url = '/Common/DownLoadXYTableExcel';
    return http.postDownload(url, params);
  },
  getAppTypes() {
    let url = '/Common/GetAppTypes';
    return http.get(url);
  },
  getOrganizationTypes() {
    let url = '/Common/GetOrganizationTypes';
    return http.get(url);
  },
  getActionLogTypes() {
    let url = '/Common/GetActionLogTypes';
    return http.get(url);
  },
  getActionLogReasons() {
    let url = '/Common/GetActionLogReasons';
    return http.get(url);
  },
  getActionLogStatuses() {
    let url = '/Common/GetActionLogStatuses';
    return http.get(url);
  },
  getSerialNumberTypes() {
    let url = '/Common/GetSerialNumberTypes';
    return http.get(url);
  },
};
export default common;
